﻿using Ninject.Core.Parameters;
using TestBat.IModels.Domain;
using TestBat.IViewModels.Factories;
using TestBat.IViewModels.Workspaces.Tasks;
using TestBat.ServiceLocator;

namespace TestBat.ViewModels.Factories
{
    public class TaskViewModelFactory : ITaskViewModelFactory
    {
        public ITaskViewModel Create(ITask task)
        {
            return DefaultServiceLocator.Get<ITaskViewModel>(With.Parameters.ConstructorArgument("task", task));
        }
    }
}
